<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://xmlns.jcp.org/jsf/core">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Classificados 1,99</title>
	<f:facet name="last">
		<h:outputStylesheet library="css" name="bootstrap.min.css" />
		<h:outputStylesheet library="css" name="bootstrap-theme.min.css" />

	</f:facet>
</h:head>
<h:body>
	<div class="container">
		<h:form>
			<h:commandLink styleClass="btn btn-default btn-primary"
				value="Novo Anúncio " action="/jsf/anuncio/cad_anuncios"/>
			<h:dataTable styleClass="table" value="#{usuarioBean.anunciosUsuario}"
				var="anuncio">
				<h:column>
					<f:facet name="header">Titulo</f:facet>			
    				#{anuncio.titulo}
		    	</h:column>
				<h:column>
					<f:facet name="header">Descricao</f:facet>			
    				#{usr.descricao}
		    	</h:column>
		    	<h:column>
					<f:facet name="header">Ações</f:facet>			
    				<h:commandLink action="/jsf/anuncio/cad_anuncios">
							<h:outputText value="Editar"></h:outputText>
							<f:param id="anuncio" name="anuncio" value="#{anuncio.codigo}"></f:param>
						</h:commandLink>
		    	</h:column>
		    	
			</h:dataTable>
		</h:form>
	</div>

	<h:outputScript name="bootstrap.min.js" library="js" />
</h:body>
</html>